<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  methods: {
    saveState() {
      if(localStorage.getItem('user')) {
          this.$store.state.user = JSON.parse(localStorage.getItem('user'))
        }
    }
  },
  mounted() {
    this.saveState()
  }
}
</script>

<style>
body {
  margin: 0;padding: 0;
}
/* 隐藏右侧滚动条 */
::-webkit-scrollbar {
  width: 0 !important;
}
::-webkit-scrollbar {
  width: 0 !important;height: 0;
}
</style>
